<template>
  <div>
    <h2>子类组件 --> {{counterStore.count}} <button @click="counterStore.addCount">+</button></h2>
    <div>
      {{counterStore.count1}}
    </div>
  </div>
</template>
<script setup>
import {userCounterStore} from "@/store";
const counterStore = new userCounterStore()

</script>
<style scoped lang="less">

</style>
